package com.ruoyi.flow.flow.entity;

import com.ruoyi.flow.flow.entity.FlowDefinition;
import com.ruoyi.flow.flow.workflow.FlowService;
import org.activiti.engine.runtime.ProcessInstance;

/**
 * @Author: wtian
 * @Description:
 * @Date: Created in 11:01 2018/8/17
 * @Version: 1.0
 */
public class FlowInstance {
    private FlowDefinition definition;
    private String processInstanceId;
    private String businessId;
    private int businessType;
    private String title;
    private String createUserId;
    private String createUserName;
    private long createTime;
    private String createTimeStr;
    private String createCity;
    private String createDeptId;

    public FlowInstance(ProcessInstance instance, FlowService flowService){
        this.processInstanceId = instance.getProcessInstanceId();
    }

    public FlowDefinition getDefinition() {
        return definition;
    }

    public void setDefinition(FlowDefinition definition) {
        this.definition = definition;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public int getBusinessType() {
        return businessType;
    }

    public void setBusinessType(int businessType) {
        this.businessType = businessType;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getCreateTimeStr() {
        return createTimeStr;
    }

    public void setCreateTimeStr(String createTimeStr) {
        this.createTimeStr = createTimeStr;
    }

    public String getCreateCity() {
        return createCity;
    }

    public void setCreateCity(String createCity) {
        this.createCity = createCity;
    }

    public String getCreateDeptId() {
        return createDeptId;
    }

    public void setCreateDeptId(String createDeptId) {
        this.createDeptId = createDeptId;
    }
}
